package com.icss;

import com.etc.demo.starter.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * Filename:    StartApp
 * Description:  TODO
 * Copyright:   Copyright (c) 2018-2022 All Rights Reserved.
 * Company:     chinasofti.com Inc.
 *
 * @author: mazheng
 * @version: 1.0
 * Create at:   2021/2/3 9:29
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2021/2/3      mazheng      1.0         1.0 Version
 */
@SpringBootApplication
public class StartApp implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(StartApp.class, args);
    }
    @Autowired
    ApplicationContext context;

    @Autowired
    DemoService service;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(service.showkey());
    }
}
